<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<!--<a href="/add" th:href="@{|/add?dd=dd&ddd=ddd|}"></a>-->
<a href="/addsel" th:href="@{/addsel}">发布</a>
<table border="1">
    <tr>
        <th>序号</th>
        <th>描述</th>
        <th>户型</th>
        <th>租金</th>
        <th>发布时间</th>
        <th>操作</th>
    </tr>
    <tr th:each="info : ${infos}" th:bgcolor="${infoStat.index%2==1}?'red':''">
        <td th:text="${infoStat.count}"></td>
        <td th:text="${info.housedesc}"></td>
        <td>
            <a th:text="${info.typename}" th:href="@{|/selzzzz?typeid=${info.typeid}|}"></a>
        </td>
        <td th:text="${info.monthlyrent}"></td>
        <td th:text="${#dates.format(info.publishdate,'yyyy-MM-dd')}"></td>
        <td><a th:href="@{|/addsel?houseid=${info.houseid}|}">修改</a></td>
        <td><a th:href="@{|/del?houseid=${info.houseid}|}">删除</a></td>
    </tr>

</table>
</body>
</html>